package cn.stack.springframework.test;

import cn.bugstack.springframework.context.support.ClassPathXmlApplicationContext;
import cn.stack.springframework.test.event.CustomEvent;
import org.junit.Test;

public class ApiTest10 {
    @Test
    public void test_event(){
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:spring10.xml");

        applicationContext.publishEvent(new CustomEvent(applicationContext,101912900908763L,"成功了"));

        applicationContext.registerShutdownHook();
    }
}

